/**
 * Copyright (C)  2011  chen wei hua.
 * Permission is granted to copy, distribute and/or modify this document
 * under the terms of the GNU Free Documentation License, Version 2.0
 * or any later version published by the Free Software Foundation;
 * with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
 * A copy of the license is included in the section entitled "GNU Free Documentation License".
 */
package com.javaeye.store.dao;

import java.util.Date;
import java.util.List;

import com.javaeye.common.dao.DAO;
import com.javaeye.store.dto.MaterialsChangeDetail;

public interface MaterialsChangeDetailDAO extends DAO {
	
	public void save(MaterialsChangeDetail detail);
	
	/**
	 * 取得指定日期期间内的物料的所有批次
	 * @param beginDate
	 * @param materialsId
	 * @return
	 */
	public List<String> getBatchNos(Date beginDate, Date endDate, int materialsId);
	
	/**
	 * 取得指定日期期间内在库品的库存变动数据汇总
	 * @param beginDate
	 * @param endDate
	 * @param materialsId
	 * @param batchNo
	 * @return
	 */
	public List<MaterialsChangeDetail> getMaterialsChangeInfo(Date beginDate, Date endDate, int materialsId, String batchNo);
	
	/**
	 * 取得指定日期期间内在库品的库存变动数据汇总
	 * @param beginDate
	 * @param endDate
	 * @param materialsId
	 * @param batchNo
	 * @return
	 */
	public List<MaterialsChangeDetail> getMaterialsChangeInfo(Date beginDate, Date endDate, int materialsId);
	
	/**
	 * 取得指定日期期间内的物料ID
	 * @param materialsId
	 * @param monthNo
	 * @return
	 */
	public List<Integer> getMaterialsIds(Date beginDate, Date endDate);
	
}
